package cn.teduo;

public class dou19 {
    public static void main(String[] args) {
        a a = new b();
        a.show1();
        a.show2();
    }
}
interface a{
    abstract public void show1();
    abstract public void show2();
}
//创建实现类、创建多态对象

class b implements a{
    public void show1() {
        System.out.println(1);
    }
    public void show2() {
        System.out.println(2);
    }
}
